home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000…tember: Reference Library / Dev.CD Sep 00 RL Disk 1.toast / mac / Technical Documentation / Develop / develop Issue 23 / develop Issue 23 code / ProjectDrag 1.1b8.sea / ProjectDrag 1.1b8 / Sources / ProjectDrag Sources / Obsolete.r / Obsolete.r
Encoding:
Text File  |  1995-07-12  |  5.5 KB  |  202 lines  |  [TEXT/MPS ]

  1. /* Obsolete.r: Obsolete applet resources for ProjectDrag
  2.  *
  3.  * A set of applets for drag and drop source control by Tim Maroney.
  4.  * See develop, issue 23 for details.
  5.  *
  6.  * Built on DropShell by Leonard Rosenthol, Stephan Somogyi, and Marshall Clow,
  7.  * and using the MoreFiles utilities by Jim Luther.
  8.  *
  9.  * This software is free, but don't modify and redistribute it without
  10.  * changing the status window to indicate your name and your changes!
  11.  */
  12.  
  13. #define SystemSevenOrLater 1
  14. #include "Types.r"
  15. #include "SysTypes.r"
  16. #include "BalloonTypes.r"
  17. #include "AEUserTermTypes.r"
  18.  
  19. include "Obsolete.rsrc";
  20.  
  21. /* First thing we need is the Finder Help Balloon */
  22. resource 'hfdr' (-5696) {
  23.     HelpMgrVersion, 0, 0, 0,
  24.     {
  25.         HMStringItem {
  26.             "Drag a source file onto this icon, and it will be obsoleted."
  27.         },
  28.     }
  29. };
  30.  
  31.  
  32.  
  33. /* Menus & Menu Help Resources */
  34. resource 'MENU' (128, "Apple") { 128, textMenuProc, 0x7FFFFFFD, enabled, apple, 
  35.     {    /* array: 2 elements */
  36.         /* [1] */    "About Obsolete…", noIcon, noKey, noMark, plain,
  37.         /* [2] */    "-", noIcon, noKey, noMark, plain
  38.     }
  39. };
  40.  
  41. resource 'MENU' (129, "File") { 129, textMenuProc, allEnabled, enabled, "File", 
  42.     {    /* array: 2 elements */
  43.         /* [1] */    "Obsolete File…",    noIcon, "O", noMark, plain,
  44.         /* [2] */    "Quit",         noIcon, "Q", noMark, plain
  45.     }
  46. };
  47.  
  48. resource 'DITL' (128, purgeable) {
  49.     {    /* array DITLarray: 3 elements */
  50.         /* [1] */ {97, 198, 117, 270}, Button { enabled, "OK" }, 
  51.         /* [2] */ {8, 8, 87, 271}, StaticText { disabled,
  52.             "Obsolete - ProjectDrag's applet for obsoleting files. By Tim Maroney. " },
  53.         /* [3] */ {0, 0, 0, 0}, HelpItem { disabled, HMScanhdlg { 1 } } 
  54.     }
  55. };
  56.  
  57. /* Here are the STR#'s that the Help text is stored in! */
  58. resource 'STR#' (128,purgeable) {    /* help items for Apple Menu */
  59.     { /* array StringArray: 3 elements */
  60.         /* [1] */     "Everything you always wanted to know about Obsolete, but were afraid to ask",
  61.         /* [2] */     "Click here to dismiss this dialog.",
  62.         /* [3] */     "This text describes the product, its author, and why!"
  63.     }
  64. };
  65.  
  66. resource 'STR#' (129,purgeable) {    /* help items for File Menu */
  67.     { /* array StringArray: ? elements */
  68.         /* [1] */    "Use this menu to obsolete a file and to exit Obsolete.",
  69.         /* [2] */     "Use this menu to obsolete a file and to exit Obsolete. "
  70.                       "This menu is unavailable now.",
  71.         /* [3] */     "Use this menu to obsolete a file and to exit Obsolete. "
  72.                     "This menu is unavailable until you respond to the alert box or dialog box.",
  73.         /* [4] */     "This command is unavailable until you respond to the alert box or dialog box.",
  74.         /* [5] */     "Use this command to obsolete a file.",
  75.         /* [6] */     "Use this command to obsolete a filen. "
  76.                     "Not available now for some strange reason.",
  77.         /* [7] */     "Use this command to exit Obsolete.",
  78.         /* [8] */     "Use this command to exit Obsolete. "
  79.                     "Not available now for some strange reason."
  80.     }
  81. };
  82.  
  83. resource 'STR#' (200, purgeable) {    /* help info for the Error Dialog */
  84.     {    /* array StringArray: 3 elements */
  85.         /* [1] */    "Click here to dismiss this dialog.",
  86.         /* [2] */    "This text describes the error that occured.",
  87.         /* [3] */    "This error ID gives more specific details of the error."
  88.     }
  89. };
  90.  
  91. resource 'STR#' (2001, purgeable) {    /* progress info */
  92.     {    /* array StringArray: 1 element */
  93.         /* [1] */    "obsoleting “<1>”",
  94.     }
  95. };
  96.  
  97. resource 'STR#' (2002, purgeable) {    /* stuff */
  98.     {    /* array StringArray: 1 element */
  99.         /* [1] */    "Do you really want to obsolete “<1>”?",
  100.         /* [2] */    "“<1>” isn't checked in, so it can't be obsoleted.",
  101.     }
  102. };
  103.  
  104. resource 'hmnu' (129, purgeable) {    /* File */
  105.     HelpMgrVersion, 0, 0, 0,
  106.     HMSkipItem {    /* no missing items */    },
  107.     {    /* array HMenuArray: 4 elements */
  108.         HMStringResItem {    /* Menu Title */
  109.             129, 1,
  110.             129, 2,
  111.             129, 3,
  112.             129, 4
  113.         },
  114.         HMStringResItem {    /* Open File… */
  115.             129, 5,
  116.             129, 6,
  117.             0, 0,
  118.             0, 0
  119.         },
  120.         HMStringResItem {    /* Quit */
  121.             129, 7,
  122.             129, 8,
  123.             0, 0,
  124.             0, 0
  125.         },
  126.     }
  127. };
  128.  
  129. resource 'BNDL' (128, purgeable) {
  130.     'pdob',
  131.     0,
  132.     {    /* array TypeArray: 2 elements */
  133.         /* [1] */
  134.         'FREF',
  135.         {    /* array IDArray: 2 elements */
  136.             /* [1] */ 0, 128,
  137.             /* [2] */ 1, 129
  138.         },
  139.         /* [2] */
  140.         'ICN#',
  141.         {    /* array IDArray: 2 elements */
  142.             /* [1] */ 0, 128,
  143.             /* [2] */ 1, 0
  144.         }
  145.     }
  146. };
  147.  
  148. data 'pdob' (0) {
  149.     "Obsolete - Free software by Tim Maroney!"
  150. };
  151.  
  152. resource 'FREF' (128) { 'APPL', 0, "" }; 
  153. resource 'FREF' (129) { '****', 1, "" }; 
  154.  
  155.  
  156. /*
  157.     This is the KEY resource in supporting AEVTs - it is used by scripting/macro
  158.     systems such as Control Tower & QuicKeys in determing what events an application
  159.     supports.
  160.     
  161.     In this one, we simply tell it we support the required events, since that is all
  162.     we do.  If you add additional events, you MUST consult the AETE documentation
  163.     distributed by Apple.  Make sure you find the RELEASE NOTES, since this resource
  164.     has undergone a NUMBER of chanes.
  165. */
  166. resource 'aete' (0, "Apple Events Terminology") {
  167.  
  168.     0x00,            /* major version number in BCD */
  169.     0x90,            /* minor version number in BCD. From 7/9/91 version of AEUT docs */
  170.     english,        /* descriptions are in english */
  171.     roman,            /* use roman language script system */
  172.     
  173.     {    /* array Suites: 1 elements */
  174.     
  175.         /*******************************************************
  176.         [1] -- The part that show we do the required AppleEvents
  177.         *******************************************************/
  178.  
  179.         "Required Suite",
  180.         "Events that every application should support",
  181.         'reqd',
  182.         1,            /* suite level */
  183.         1,            /* suite version */
  184.         
  185.         {
  186.             /* array Events: 0 elements */
  187.         },
  188.         
  189.         {
  190.             /* array Classes: 0 elements */
  191.         },
  192.         
  193.         {
  194.             /* array ComparisonOps: 0 elements */
  195.         },
  196.         
  197.         {
  198.             /* array Enumerations: 0 elements */
  199.         },
  200.     }
  201. };
  202.